<template>
  <view class="innerContain">
    <view class="top-content"></view>
    <view class='topradio'>

    <view class="top">
      <innerCard :data="data" :cartcount='cartcount'/>
    </view>
    <!-- <view class="gap"></view> -->
    <view class="childborder">
      <u-form :model="form" ref="uForm"  :error-type="errorType">
         <view v-if='form.status=="正常"'>
         <u-form-item  class="selectone" style="padding:0rpx 0rpx 12rpx 0rpx;margin-top:-14rpx;" label="状态" prop="status" >
         <u-tag v-if='form.status=="正常"' :text="form.status" type="success" mode='dark' style="" size='mini' shape="circle"/>
           <u-tag v-else-if='form.status=="异常"' :text="form.status" type="error" mode='dark' style="" size='mini' shape="circle"/>
          
          <u-input
            class="input1"
            v-model="form.status"
            type="select"
            placeholder="请选择状态"
            @click="showStatus = true"
          />
          <u-select v-model="showStatus" :list="statusList" @confirm="secStatus"></u-select>
        </u-form-item>
        </view>
        <view v-else>
        <u-form-item  class="selectone" style="padding:0rpx 0rpx 24rpx 0rpx;margin-top:-14rpx;" label="状态" prop="status" >
         <u-tag v-if='form.status=="正常"' :text="form.status" type="success" mode='dark' style="" size='mini' shape="circle"/>
           <u-tag v-else-if='form.status=="异常"' :text="form.status" type="error" mode='dark' style="" size='mini' shape="circle"/>
          
          <u-input
            class="input1"
            v-model="form.status"
            type="select"
            placeholder="请选择状态"
            @click="showStatus = true"
          />
          <u-select v-model="showStatus" :list="statusList" @confirm="secStatus"></u-select>
        </u-form-item>
       
         <view class v-if="sechidden">
             <!-- <u-form-item  class="selectone1 right2" label="是否异常" label-width="140" prop="status">
              <u-radio-group v-model="value" @change="radioChange">
                <u-radio name="0">是</u-radio>
                <u-radio name="1">否</u-radio>
              </u-radio-group>
            </u-form-item>  -->
            <!-- <u-form-item  class="selectone1"  label-width="200" label="测量位移" prop="detail"> </u-form-item> -->
        <u-form-item  class="selectone1" label="轴向" prop="axial">
              <u-input type="text"  style="right:32rpx" placeholder="请输入轴向" v-model="form.axial" />
            </u-form-item>
            <u-form-item  class="selectone1" label="横向" prop="transverse">
              <u-input type="text"  style="right:32rpx" placeholder="请输入横向" v-model="form.transverse" />
            </u-form-item>
            <u-form-item  class="selectone1" label="角向" prop="angular">
              <u-input type="text"  style="right:32rpx" placeholder="请输入角向" v-model="form.angular " />
            </u-form-item>
            
        <!-- <u-form-item  class="selectone1"  label-width="200" label="测量极限波距" prop="detail"> </u-form-item> -->
        <u-form-item  class="selectone1"  label-width="170" label="工具" prop="name">
                <u-input type="text"  style="right:32rpx" placeholder="请输入工具" v-model="form.name" />
              </u-form-item>
              <u-form-item  class="selectone1"  label="位置" prop="address">
                <u-input type="text"  style="right:32rpx" placeholder="请输入位置" v-model="form.address" />
              </u-form-item>
              <u-form-item  class="selectone1"  label-width="140" label="异常状况" prop="errmsg">
                <u-input type="text "  style="right:32rpx" placeholder="请输入异常状况" v-model="form.errmsg" />
              </u-form-item>
              <u-form-item  class="selectone1"  label-width="140" label="异常数值" prop="value">
                <u-input type="text"  style="right:32rpx" placeholder="请输入异常数值" v-model="form.value" />
              </u-form-item>
                <u-form-item  class="borderbottom selectone1" style="" label="图片" prop="">

              </u-form-item>
                  <Upload  v-model="form.file"/>
               
         <!-- <u-form-item  class="selectone1" label="测量" prop="detail">
            <u-input v-model="form.detail" placeholder="请选择测量方式" type="select" @click="measureStatus = true" />
            <u-select v-model="measureStatus" :list="measureList" @confirm="corrosionmethods"></u-select>
          </u-form-item>
          <view class v-if="corrosionHidden===2">
            <u-form-item  class="selectone1" label="轴向" prop="axial">
              <u-input type="text"  style="right:32rpx" placeholder="请输入轴向" v-model="form.axial" />
            </u-form-item>
            <u-form-item  class="selectone1" label="横向" prop="transverse">
              <u-input type="text"  style="right:32rpx" placeholder="请输入横向" v-model="form.transverse" />
            </u-form-item>
            <u-form-item  class="selectone1" label="角向" prop="angular">
              <u-input type="text"  style="right:32rpx" placeholder="请输入角向" v-model="form.angular " />
            </u-form-item>

            <u-form-item  v-show="form.detail=='测量位移'" class="selectone1 right2" label="是否异常" label-width="140" prop="status">
              <u-radio-group v-model="value" @change="radioChange">
                <u-radio name="0">是</u-radio>
                <u-radio name="1">否</u-radio>
              </u-radio-group>
            </u-form-item>
          </view>
            <view class v-if='abnormal'>
              <u-form-item  class="selectone1"  label-width="170" label="工具" prop="name">
                <u-input type="text"  style="right:32rpx" placeholder="请输入工具" v-model="form.name" />
              </u-form-item>
              <u-form-item  class="selectone1"  label="位置" prop="address">
                <u-input type="text"  style="right:32rpx" placeholder="请输入位置" v-model="form.address" />
              </u-form-item>
              <u-form-item  class="selectone1"  label-width="140" label="异常状况" prop="errmsg">
                <u-input type="text "  style="right:32rpx" placeholder="请输入异常状况" v-model="form.errmsg" />
              </u-form-item>
              <u-form-item  class="selectone1"  label-width="140" label="异常数值" prop="value">
                <u-input type="number"  style="right:32rpx" placeholder="请输入异常数值" v-model="form.value" />
              </u-form-item>
                <u-form-item  class="borderbottom selectone1" style="" label="图片" prop="">

              </u-form-item>
          <Upload  v-model="form.file"/>
          
            </view>-->
        </view> 
        </view>
      </u-form>
    </view>

   <view class="footer">
   	<u-button @click='returnHandle()' v-if='btnShow' class="btn" type="primary" :ripple="true" ripple-bg-color="#32afff">{{showdata}}
   	</u-button>
    	<u-button @click='submit1()' v-if='!btnShow' class="btn1" type="primary" :ripple="true" ripple-bg-color="#32afff">提交
   	</u-button>
   	<u-button @click='submit()' v-if='!btnShow' class="btn1" type="primary" :ripple="true" ripple-bg-color="#32afff">处理
   	</u-button>
   </view>
  </view>
  </view>
</template>

<script>
import btn from "@/components/btn/btn.vue";
import innerCard from "@/components/innerCard/innerCard.vue";
import handleDemo from "../handleDemo/handleDemo.vue";
import {
  pointCheckDeviceDetail,
  pointCheckDeviceDetailEdit,
  pointCheckDescriptionAdd,
  pointCheckeDviceDetailList,
  pointCheckDeviceDetailAdd,
  pointCheckDeviceDetai,
  pointCheckDescriptionEdit
} from "@/api/index.js";
export default {
  components: {
    innerCard,
    btn,
    handleDemo
  },
  data() {
    return {
      showdata: "保存",
      headers: {
        Authorization: "Bearer " + uni.getStorageSync("token")
      },
      abnormal: true,
      photoshowone: true,
      errorType: ["message"],
      rules: {
        status: [
          {
            required: true,
            message: "请选择状态",
            trigger: ["blur", "change"]
          }
        ]
      },
      btnShow: true,
      form: { status: "" },
      form1: {},
      value: 0,
      measureStatus: false,
      sechidden: true,
      showStatus: false,
      corrosionHidden: 0,
      data: {
        name: "波纹管",
        time: "2021-8-19 12:02",
        number: "01",
        position: "南京",
        normal: "2",
        error: "2",
        num: "1",
        isCheck: true,
        people: "王五"
      },
      statusList: [
        {
          value: "1",
          label: "正常"
        },
        {
          value: "2",
          label: "异常"
        }
      ],
      measureList: [
        {
          value: "1",
          label: "测量极限波距"
        },
        {
          value: "2",
          label: "测量位移"
        }
      ],
      number: null
    };
  },
  onLoad(val) {
    this.state = val.Tdata;
    this.cartcount = getApp().globalData.uname;
    this.tf = val.tf;
    this.taskDeviceId = val.taskDeviceId;
    this.Tdata = val.Tdata;
    this.back = val.back;
    this.phone=val.phone
    this.manufacturer=val.manufacturer
    this.getList();
  },
  onShow() {},
  onBackPress(e) {
    if (e.from == "backbutton") {
      if (this.back) {
        uni.navigateBack();
      }
    }
  },
  watch: {
    "form.status": {
      handler(newval, oldval) {
        if (this.form.status == "正常") {
          this.sechidden = false;
          this.btnShow = true;
          this.showdata = "保存";
        } else if (this.form.status == "异常") {
          this.sechidden = true;
          // this.btnShow=false
          this.showdata = "提交";
        }
      },
      deep: true
    },
    "form.detail": {
      handler(newval, oldval) {
        if (this.form.detail == "测量极限波距") {
          this.photoshowone = false;
          this.abnormal = true;
          this.corrosionHidden = 1;
          this.btnShow = false;
        } else if (this.form.detail == "测量位移") {
          this.corrosionHidden = 2;
        }
      },
      deep: true
    },
    abnormal: {
      handler(newval, oldval) {
        if (newval == true) {
        }
      },
      deep: true
    },
    value: {
      handler(newval, oldval) {
        if (this.value == "1") {
          this.abnormal = false;
          this.btnShow = true;
        } else {
          this.btnShow = false;
          this.abnormal = true;
          this.sechidden = true;
        }
      },
      deep: true
    }
  },
  methods: {
    getList() {
      uni.showLoading({
        title: "加载中"
      });
      if (this.tf) {
        this.abnormal = false;
        this.sechidden = false;
        this.state = this.taskDeviceId;
        pointCheckDeviceDetai(this.state).then(res => {
          this.id = res.data.id;
          this.form = res.data;

          if (this.form.status == "正常") {
            this.abnormal = false;
            delete this.form["detail"];
          } else if (this.form.status == "异常") {
            const split = JSON.parse(this.form.detail);
            this.form.axial = split.axial;
            this.form.transverse = split.transverse;
            this.form.angular = split.angular;
            this.value = split.value;
            //  if (this.value == "0") {
            this.btnShow = false;

            if (
              (this.id != "undefined") |
              (this.id != null) |
              (this.id != null)
            ) {
              pointCheckeDviceDetailList(this.id).then(res1 => {
                if (res1.data.id) {
                  this.childid = res1.data.id;
                  for (let i in res1.data) {
                    if (!res1.data[i]) {
                      delete res1.data[i];
                    }
                  }
                  this.form1 = res1.data;
                  let name = { ...this.form },
                    form2 = { ...this.form1 };
                  this.form = { ...name, ...form2 };
                }
              });
            }
            if (split.detail === "测量位移") {
              this.form.detail = split.detail;
              this.form.axial = split.axial;
              this.form.transverse = split.transverse;
              this.form.angular = split.angular;
              this.value = split.value;
              if (this.value == "0") {
                this.btnShow = false;

                if (
                  (this.id != "undefined") |
                  (this.id != null) |
                  (this.id != null)
                ) {
                  pointCheckeDviceDetailList(this.id).then(res1 => {
                    if (res1.data.id) {
                      this.childid = res1.data.id;
                      for (let i in res1.data) {
                        if (!res1.data[i]) {
                          delete res1.data[i];
                        }
                      }
                      this.form1 = res1.data;
                      let name = { ...this.form },
                        form2 = { ...this.form1 };
                      this.form = { ...name, ...form2 };
                    }
                  });
                }
              } else {
              }
            } else if (split.detail === "测量极限波距") {
              this.form.detail = split.detail;
              if (
                (this.id != "undefined") |
                (this.id != null) |
                (this.id != null)
              ) {
                pointCheckeDviceDetailList(this.id).then(res1 => {
                  if (res1.data.id) {
                    this.childid = res1.data.id;
                    for (let i in res1.data) {
                      if (!res1.data[i]) {
                        delete res1.data[i];
                      }
                    }
                    this.form1 = res1.data;
                    let name = { ...this.form },
                      form2 = { ...this.form1 };
                    this.form = { ...name, ...form2 };
                  }
                });
              }
            } else if (split.detail === "测量极限波距与位移") {
              this.form.detail = split.detail;
              this.form.axial = split.axial;
              this.form.transverse = split.transverse;
              this.form.angular = split.angular;
              this.value = split.value;
              if (
                (this.id != "undefined") |
                (this.id != null) |
                (this.id != null)
              ) {
                pointCheckeDviceDetailList(this.id).then(res1 => {
                  if (res1.data.id) {
                    this.childid = res1.data.id;
                    for (let i in res1.data) {
                      if (!res1.data[i]) {
                        delete res1.data[i];
                      }
                    }
                    this.form1 = res1.data;
                    let name = { ...this.form },
                      form2 = { ...this.form1 };
                    this.form = { ...name, ...form2 };
                  }
                });
              }
            }
          }
          this.edit = true;

          // });
          this.abnormal = false;
          this.sechidden = false;
          uni.hideLoading();
        });
      } else {
        this.abnormal = false;
        this.sechidden = false;
        pointCheckDeviceDetail(this.state).then(res => {
          res.data["波纹管"].pointCheckDeviceDetails.forEach(item => {
            if (item.item == "异常变形") {
              this.id = item.id;
              for (let i in item) {
                if (!item[i]) {
                  delete item[i];
                }
              }
              this.form = item;
              if (this.form.status == "正常") {
                this.abnormal = false;
                delete this.form["detail"];
              } else if (this.form.status == "异常") {
                const split = JSON.parse(this.form.detail);
                this.form.axial = split.axial;
                this.form.transverse = split.transverse;
                this.form.angular = split.angular;
                this.value = split.value;
                //  if (this.value == "0") {
                this.btnShow = false;

                if (
                  (this.id != "undefined") |
                  (this.id != null) |
                  (this.id != null)
                ) {
                  pointCheckeDviceDetailList(this.id).then(res1 => {
                    if (res1.data.id) {
                      this.childid = res1.data.id;
                      for (let i in res1.data) {
                        if (!res1.data[i]) {
                          delete res1.data[i];
                        }
                      }
                      this.form1 = res1.data;
                      let name = { ...this.form },
                        form2 = { ...this.form1 };
                      this.form = { ...name, ...form2 };
                    }
                  });
                }
                // }
                if (split.detail === "测量位移") {
                  this.form.detail = split.detail;
                  this.form.axial = split.axial;
                  this.form.transverse = split.transverse;
                  this.form.angular = split.angular;
                  this.value = split.value;
                  if (this.value == "0") {
                    this.btnShow = false;

                    if (
                      (this.id != "undefined") |
                      (this.id != null) |
                      (this.id != null)
                    ) {
                      pointCheckeDviceDetailList(this.id).then(res1 => {
                        if (res1.data.id) {
                          this.childid = res1.data.id;
                          for (let i in res1.data) {
                            if (!res1.data[i]) {
                              delete res1.data[i];
                            }
                          }
                          this.form1 = res1.data;
                          let name = { ...this.form },
                            form2 = { ...this.form1 };
                          this.form = { ...name, ...form2 };
                        }
                      });
                    }
                  }
                } else if (split.detail === "测量极限波距") {
                  this.form.detail = split.detail;
                  if (
                    (this.id != "undefined") |
                    (this.id != null) |
                    (this.id != null)
                  ) {
                    pointCheckeDviceDetailList(this.id).then(res1 => {
                      if (res1.data.id) {
                        this.childid = res1.data.id;
                        for (let i in res1.data) {
                          if (!res1.data[i]) {
                            delete res1.data[i];
                          }
                        }
                        this.form1 = res1.data;
                        let name = { ...this.form },
                          form2 = { ...this.form1 };
                        this.form = { ...name, ...form2 };
                      }
                    });
                  }
                }
              }
              this.edit = true;
            } else {
              this.edit = false;
              this.abnormal = false;
            }
          });
          this.abnormal = false;
          this.sechidden = false;
          uni.hideLoading();
        });
      }
    },
    returnHandle() {
      if (this.value == 1) {
        this.submit1();
      } else {
        this.$refs.uForm.validate(valid => {
          if (valid) {
            let data = {};
            if (this.form.status == "正常") {
              data = {
                id: String(this.id),
                taskDeviceId: String(this.state),
                type: "波纹管",
                item: "异常变形",
                status: this.form.status
              };
            } else {
              let slight;
              slight = JSON.stringify({
                handle: this.value == 0 ? true : false,
                axial: this.form.axial ? this.form.axial : "",
                transverse: this.form.transverse ? this.form.transverse : "",
                angular: this.form.angular ? this.form.angular : "",
                value: this.value
              });

              data = {
                id: String(this.id),
                taskDeviceId: String(this.state),
                type: "波纹管",
                item: "异常变形",
                status: this.form.status,
                detail: slight,
                file: this.form.file
              };
            }
            if (!data.id | (data.id == "undefined")) {
              delete data["id"];
            }
            if (this.tf) {
              data.taskDeviceId = String(this.Tdata);
            }
            pointCheckDeviceDetailAdd(data).then(res => {
              if (this.back) {
                uni.navigateBack();
                uni.navigateBack();
              } else {
                uni.navigateBack({
                  delta: 1
                });
              }
            });
          } else {
            console.log("验证失败");
          }
        });
      }
    },
    submit1() {
      this.$refs.uForm.validate(valid => {
        if (valid) {
          let slight;
          let data;
          let file = "";
          slight = JSON.stringify({
            handle: this.value == 0 ? true : false,
            axial: this.form.axial ? this.form.axial : "",
            transverse: this.form.transverse ? this.form.transverse : "",
            angular: this.form.angular ? this.form.angular : "",
            value: this.value
          });
          data = {
            id: String(this.id),
            taskDeviceId: String(this.state),
            type: "波纹管",
            item: "异常变形",
            status: this.form.status,
            detail: slight,
            file: this.form.file
          };
          const _this = this;
          const data2 = {
            id: String(this.childid),
            detailId: String(this.id),
            name: this.form.name,
            address: this.form.address,
            errmsg: this.form.errmsg,
            value: this.form.value
          };
          if ((data.id == null) | (data.id == "") | (data.id == "undefined")) {
            delete data["id"];
          }
          if (
            (data2.id == null) |
            (data2.id == "") |
            (data2.id == "undefined")
          ) {
            delete data2["id"];
          }
          // if (this.abnormal) {
          if (this.tf) {
            data.taskDeviceId = String(this.Tdata);

            pointCheckDeviceDetailAdd(data).then(res => {
              pointCheckDeviceDetail(this.Tdata).then(res1 => {
                pointCheckDescriptionAdd(data2).then(res2 => {
                  // uni.navigateTo({
                  //   url:
                  //     `/pages/handleDemo/handleDemo?position=1&number=` +
                  //     data2.detailId +
                  //     "&id=" +
                  //     this.id+'&back='+true
                  // });
                  if (this.back) {
                    uni.navigateBack();
                    uni.navigateBack();
                  } else {
                    uni.navigateBack({
                      delta: 1
                    });
                  }
                });
              });
            });
          } else {
            pointCheckDeviceDetailAdd(data).then(res => {
              pointCheckDeviceDetail(this.state).then(res1 => {
                res1.data["波纹管"].pointCheckDeviceDetails.forEach(item => {
                  if (item.item == "异常变形") {
                    data2.detailId = item.id;
                    pointCheckDescriptionAdd(data2).then(res2 => {
                      // uni.navigateTo({
                      //   url:
                      //     `/pages/handleDemo/handleDemo?position=1&number=` +
                      //     data2.detailId +
                      //     "&id=" +
                      //     this.id
                      // });
                      uni.navigateBack({
                        delta: 1
                      });
                    });
                  }
                });
              });
            });
          }
          // } else {
          // pointCheckDeviceDetailAdd(data).then(res => {
          //      uni.navigateBack({
          //     delta: 1
          //   });
          // });
          // }
        } else {
          console.log("验证失败");
        }
      });
    },
    submit() {
      this.$refs.uForm.validate(valid => {
        if (valid) {
          let slight;
          let data;
          let file = "";
          slight = JSON.stringify({
            handle: this.value == 0 ? true : false,
            axial: this.form.axial ? this.form.axial : "",
            transverse: this.form.transverse ? this.form.transverse : "",
            angular: this.form.angular ? this.form.angular : "",
            value: this.value
          });
          data = {
            id: String(this.id),
            taskDeviceId: String(this.state),
            type: "波纹管",
            item: "异常变形",
            status: this.form.status,
            detail: slight,
            file: this.form.file
          };
          // if (!this.abnormal) {
          //   delete data["file"];
          // }
          const _this = this;
          const data2 = {
            id: String(this.childid),
            detailId: String(this.id),
            name: this.form.name,
            address: this.form.address,
            errmsg: this.form.errmsg,
            value: this.form.value
          };
          if ((data.id == null) | (data.id == "") | (data.id == "undefined")) {
            delete data["id"];
          }
          if (
            (data2.id == null) |
            (data2.id == "") |
            (data2.id == "undefined")
          ) {
            delete data2["id"];
          }
          // if (this.abnormal) {
          if (this.tf) {
            data.taskDeviceId = String(this.Tdata);

            pointCheckDeviceDetailAdd(data).then(res => {
              pointCheckDeviceDetail(this.Tdata).then(res1 => {
                pointCheckDescriptionAdd(data2).then(res2 => {
                  uni.navigateTo({
                    url:
                      `/pages/handleDemo/handleDemo?position=1&number=` +
                      data2.detailId +
                      "&id=" +
                      this.id +
                      "&back=" +
                      true+'&phone='+this.phone+'&manufacturer='+this.manufacturer
                  });
                });
              });
            });
          } else {
            pointCheckDeviceDetailAdd(data).then(res => {
              pointCheckDeviceDetail(this.state).then(res1 => {
                res1.data["波纹管"].pointCheckDeviceDetails.forEach(item => {
                  if (item.item == "异常变形") {
                    data2.detailId = item.id;
                    pointCheckDescriptionAdd(data2).then(res2 => {
                      uni.navigateTo({
                        url:
                          `/pages/handleDemo/handleDemo?position=1&number=` +
                          data2.detailId +
                          "&id=" +
                          this.id+'&phone='+this.phone+'&manufacturer='+this.manufacturer
                      });
                    });
                  }
                });
              });
            });
          }
        } else {
          console.log("验证失败");
        }
      });
    },
    radioChange(name) {
    },
    secStatus(e) {
      this.form.status = e[0].label;
      if (e[0].value === "2") {
        this.sechidden = true;
        this.btnShow = false;
      } else {
        this.sechidden = false;
        this.btnShow = true;
      }
    },
    corrosionmethods(e) {
      this.form.detail = e[0].label;
      if (e[0].value === "2") {
        this.value = 1;
        this.abnormal = false;
        this.corrosionHidden = 2;
        const status = this.form.status;
        const detail = this.form.detail;

        this.$refs.uForm.resetFields();
        this.form.status = status;
        this.form.detail = detail;
        this.form.file = "";
        this.btnShow = true;
      } else if (e[0].value === "1") {
        this.abnormal = true;
        this.form.file = "";
        this.corrosionHidden = 1;
        const status = this.form.status;
        const detail = this.form.detail;
        this.$refs.uForm.resetFields();
        this.form.status = status;
        this.form.detail = detail;
        this.btnShow = false;
      } else if (e[0].value === "3") {
        this.abnormal = true;
        this.form.file = "";
        this.corrosionHidden = 1;
        const status = this.form.status;
        const detail = this.form.detail;
        this.$refs.uForm.resetFields();
        this.form.status = status;
        this.form.detail = detail;
        this.btnShow = false;
        this.corrosionHidden = 2;
      }
    },
    onReady() {
      this.$refs.uForm.setRules(this.rules);
    }
  }
};
</script>
<style lang="scss" scoped>
.innerContain {
  height: 100%;
  position: relative;
  background-color: white;
}
.top-content {
  height: 160rpx;
  background: linear-gradient(to left, #1040be, #026dff);
}
.topradio {
  height: calc(100% - 200rpx);
  overflow-y: auto;
  position: absolute;
  background-color: white;
  // padding: 30rpx;
  width: 100%;
  top: 50rpx;
  border-radius: 40rpx 40rpx 0 0;
  // position: absolute;
  // width: 100%;
  // top: 0rpx;
  // left: 0rpx;
  // background-color: white;
  // border-radius: 40rpx 40rpx 0 0;
}
.top {
  padding: 16rpx;
  /* box-shadow: 20px -77px 0px 19px #c6c6ca; */
  box-shadow: 4rpx 4rpx 20rpx #e5e1e1;
  margin: 24rpx;
  border-radius: 32rpx;
}
.childborder {
  padding: 34rpx 34rpx 10rpx 34rpx;
  margin: 24rpx;

  box-shadow: 0px 6px 33px #e5e1e1;
  border-radius: 32rpx;
}
.trueorfalse {
  margin-right: 20rpx;
  top: 6rpx;
}
.red1 {
  padding: 25rpx 0rpx;
}
.footer {
  background-color: transparent;
}
.btn {
  background: linear-gradient(-34deg, #1040be, #026dff);
  width: 544rpx;
  height: 91rpx;
  font-size: 36rpx;
  font-weight: 500;
  color: #ffffff;
  border-radius: 46rpx;
}
.btn1 {
  background: linear-gradient(-34deg, #1040be, #026dff);
  width: 45%;
  margin: 0rpx 10rpx;
  height: 91rpx;
  float: left;
  font-size: 36rpx;
  font-weight: 500;
  color: #ffffff;
  border-radius: 46rpx;
}
/deep/ .u-form-item--left__content__label {
  font-size: 33rpx;
}
/deep/ .u-input__input {
  // color:
}

.co {
  color: red;
}
/deep/ .u-input__input {
  text-align: right;
}
/deep/ .u-form-item__message {
  text-align: right;
  margin-right: 32rpx;
}
.borderbottom:after {
  border-bottom-width: 0px !important;
}
/deep/ .input1 > .u-input__input > .uni-input-wrapper > .uni-input-input {
  display: none !important;
  //  color:red !important
}
.right2 {
  /deep/ .u-form-item--right {
    position: absolute;
    right: 10rpx;
  }
}
/deep/ .selectone:after {
  border-top-width: 0px !important;
  border-bottom-width: 0px !important;

  //  .u-border-bottom:after {
  //     border-top-width: 10px !important;
  //     border-bottom-width: 0px !important;
  //   }
}
.selectone1:after {
  border-top-width: 1px !important;
  border-bottom-width: 0px !important;
  //  .u-border-bottom:after {
  //   border-top-width: 1px !important;
  //   border-bottom-width: 0px;
  // }
}
</style>
